#ifndef BUBBLESORTCLASS_H
#define BUBBLESORTCLASS_H

#include <QObject>

#include <vector>

class BubbleSortClass : public QObject
{
    Q_OBJECT
public:
    explicit BubbleSortClass(QObject* parent = nullptr);

public:
    /**
     * @brief 对数据冒泡排序
     * @param theData 要排序的数据
     */
    void sort(std::vector<int> theData);


signals:
    /**
     * @brief 排序结果
     * @param result
     */
    void sortResult(std::vector<int> result);
};

#endif // BUBBLESORTCLASS_H
